package com.lap.gateway.tools;

import com.lap.framework.dto.result.ErrorCode;
import lombok.Getter;

@Getter
public enum GatewayError implements ErrorCode {
  FALLBACK(600, "GATEWAY-FALLBACK-P0-005", "Fallback fail(Gateway)"),
  UNAUTHORIZED(401, "GATEWAY-UNAUTHORIZED-P2-006", "Unauthorized");
  ;

  private final int externalCode;
  private final String internalCode;
  private final String messageKey;

  GatewayError(int externalCode, String internalCode, String messageKey) {
    this.externalCode = externalCode;
    this.internalCode = internalCode;
    this.messageKey = messageKey;
  }
}
